const OpenAI = require("openai");
const openai = new OpenAI({
    baseURL: 'https://api.deepseek.com',
    apiKey: 'sk-c64696d5dccc40589e7a0198e9709c78'
});
module.exports = {
    deepSeek: async (content = "介绍一下你自己") => {

        try {
            const completion = await openai.chat.completions.create({
                messages: [{ role: "system", content: content }],
                model: "deepseek-chat",
            });

            console.log(completion.choices[0].message.content);
            return completion.choices[0].message.content;
        } catch (err) {
            console.log('err', err.message)
        }
    }
}